package java68_7;

public class Teacher {
    private String school;
    protected String name;
    public Teacher(String name,String school){
        System.out.println("父类的构造方法");
        this.name=name;
        this.school=school;
    }
    public void selfIntro(){
        System.out.println("我叫"+name+",来自"+school);
    }

    /**
     * 这个方法还没有写完整
     */
    public void giveLession(){
        System.out.println("知识点讲解");
        System.out.println("总结提问");
    }
    protected void buzhiZuoye(){
        System.out.println(name+"在不止作业");
    }
    public String getName(){
        return name;
    }
    @Override
    public String toString() {
        return "这是一个老师:name="+name+",属于"+school;
    }
}
